<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<html:html locale="true">
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<title></title>
<link href="console.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {font-size: 16px}
-->
.even {
	background:	#eee;
}

.odd {

}
</style>
</head>

<body>
<jsp:include page="/title.jsp" flush="true"/>

	<p class="lnkhead2">
	<logic:equal name="roleType" value="process">
	<bean:message key='menu.engines'/>&gt;<bean:write name="domain"/>&gt;<bean:message key='menu.roles'/>
	</logic:equal>
	<logic:equal name="roleType" value="workitem">
	<bean:message key='menu.taskManagers'/>&gt;<bean:write name="domain"/>&gt;<bean:message key='menu.roles'/>
	</logic:equal>
	</p>
	<form name="form" method="post" action="role.do">
	<input type="hidden" name="act" value="updateACL"/>
	<input type="hidden" name="domain" value="<bean:write name='domain'/>"/>
	<input type="hidden" name="roleType" value="<bean:write name='roleType'/>"/>
	<input type="hidden" name="id" value="<bean:write name='id'/>"/>
	<div align="center">
	  <table width="50%" border="0" cellpadding="1" class="sort-table" id="table-1" cellspacing="0">
	
	<thead>
			
			<tr >
			<td align="center">&nbsp;</td>
				
				<td align="center" width="90%">
					
					<bean:message key='role.permission'/>
					
				</td>
			</tr>
	  </thead>
			<tbody>
			<% int i=0; String color;String check="";%>
			
			<logic:iterate id="attr" name="aclList">
				
				<% i++; if(i%2==1) color="odd"; else color="even"; if(i==1) check="checked"; else check="";%>
				
				<tr  class="<%=color%>">
					<td align="center">
					<input type="checkbox" name="<bean:write name='attr' property='action'/>"  
<logic:equal name='attr' property='checked' value="true">
 checked
 </logic:equal>
/>
								
					</td>
					<td align="left">
						
						<bean:write name="attr" property="actionName"/>
						
					</td>
					
				
				</tr>
			
			</logic:iterate>
	  </tbody>
</table>
	<table width="50%">		
			<tr >
				
				<td align="center">
					<input  type="submit" name="Submit1" value="<bean:message key='button.update'/>"/>
				</td>
			</tr>
</table>
</div>
<script type="text/javascript">
var st = new SortableTable(document.getElementById("table-1"),
	["None", "None"]);
</script>
<%@ include file="/table_bottom.jsp" %>
<logic:notEmpty name="returnMsg">
	<script>
	alert('<bean:write name="returnMsg"/>');
	</script>
	</logic:notEmpty>
</body>
</html:html>



